package edu.cmsc611.simulator;

//import java.awt.Button;
import java.util.Vector;

public class SimulatorText {
	
	/**
	 * The stages interface object
	 * @see		Stages
	 */
	public Stages stg = new Stages();
	/**
	 * The listboxes interface object.
	 * @see		ListBoxes
	 */
	public Vector<String> lb = new Vector<String>();
	/**
	 * The help object.
	 * @see        Help
	 */
	public Help theHelp;
	/**
	 * The vector that holds the instruction objects.
	 * @see		Instruction
	 */
	public static Vector instr = new Vector();
	/**
	 * The simulator object.
	 * @see        Simulator
	 */
	public static Simulator sim;
	/**
	 * Booleans used to determine if the user has stepped or
	 * added an instruction.  These are used internally
	 * for dis/enabling buttons in the UI.
	 */
	private boolean stepped, instrAdded;
	/**
	 * Integer that keeps track of number of cycles in the current execution.
	 */
	public int numCycles = 0;
	/**
	 * Float that keeps track of the cycles per instruction.
	 */
	public double CPI = 0.0;
	

	/**
	 * The main method provides initializations for the application.
	 */
	public static void main(String[] args)
	{
		String inputFile="input.txt";
		ReadInput rinput=new ReadInput();
		rinput.readInstructionFromFile(inputFile);
		Vector<Instruction> instructions=rinput.getInstructions();
		System.out.println(instructions);
		/*
		 * Reading input finished
		 */
		
		
	}
}
